package shop;

import org.springframework.beans.factory.annotation.Autowired;

public abstract class AddAccoundPage {

	abstract public Product getProduct();
	
	@Autowired
	private CreateProduct createProduct;
	
	public String save(){
		createProduct.createProduct(getProduct());
		return "/thankyou.xhtml";
	}
	
}
